<div class="layout">
    <header class="titleBar">
        <a href="#/" class="back"><img src="images/back.png" alt=""></a>
        <div class="title">
            认证身份
        </div>
        <a href="#/" class="skip">跳过</a>
    </header>
    <ul class="optionZone" ng-show="showDepartment">
        <li ng-repeat="d in departments">
            <a href="" ng-click="step1Department(d)">{{d.department_name}}</a>
        </li>
        <li ng-repeat="d in subDepartments">
            <a href="" ng-click="closeDepartment(d)">{{d.department_name}}</a>
        </li>
    </ul>
    <ul class="optionZone" ng-show="showHospital">
        <li ng-repeat="d in areas">
            <a href="" ng-click="step1Hospital(d)">{{d.area_name}}</a>
        </li>
        <li ng-repeat="d in hospitals">
            <a href="" ng-click="closeHospital(d)">{{d.hospital_name}}</a>
        </li>
    </ul>
    <ul class="optionZone" ng-show="showQualification">
        <li ng-repeat="d in qualifications">
            <a href="" ng-click="closeQualification(d)">{{d.qualification_name}}</a>
        </li>
    </ul>
    <div class="settingZone authZone" ng-hide="showDepartment||showHospital||showQualification">
        <p class="hasIcon">
            <span>
                医生头像
                <br>
                <i>为了增加患者信任,请使用正面大头照</i>
            </span>
            <a href="" class="more" ng-click="uploadAvatar()"><img src="{{doctor.doctor_headphoto?doctor.doctor_headphoto:'images/setting-auth-avatar.png'}}" alt=""></a>
            <input type="file" name="avatarInput" id="avatarInput" class="hidden" value="" />
        </p>
        <p>
            <span>医生姓名</span>
            <input type="text" style="width: 440px;border: 0;color: #ccc;" ng-model="doctor.doctor_name">
        </p>
        <p>
            <span>科室</span>
            <a href="" class="more" ng-click="chooseDepartment()">{{currentDepartment?currentDepartment:'选择您所在科室'}}</a>
        </p>
        <p>
            <span>医院</span>
            <a href="" class="more" ng-click="chooseHospital()">{{currentHospital?currentHospital:'选择您所在医院'}}</a>
        </p>
        <p>
            <span>资质</span>
            <a href="" class="more" ng-click="chooseQualification()">{{currentQualification?currentQualification:'例如主任医师'}}</a>
        </p>
        <p class="hasTextarea">
            <span>个人简介</span>
            <textarea name="" id="" cols="30" rows="10" ng-model="doctor.doctor_brief"></textarea>
        </p>
        <p class="hasTextarea">
            <span>擅长</span>
            <textarea name="" id="" cols="30" rows="10" ng-model="doctor.doctor_goodat"></textarea>
        </p>
        <p class="hasIcon" style="border-bottom: none">
            <span>
                上传资格证或执业证
                <br>
                <i>请保证证书姓名、照片、编号清晰可见</i>
            </span>
            <a href="" class="more" ng-click="uploadCert()"><img src="{{doctor.doctor_certificate?doctor.doctor_certificate:'images/expert-add.png'}}" alt=""></a>
            <input type="file" name="certInput" id="certInput" class="hidden" value="" />
        </p>
        <a href="" class="btnLogin" ng-click="save()">{{doctor.authentication=='N'?'提交认证':'重新审核'}}</a>
    </div>
</div>
